package cn.aixuxi.notebank.service.impl;

import cn.aixuxi.notebank.dto.TagOutputDTO;
import cn.aixuxi.notebank.entity.TagEntity;
import cn.aixuxi.notebank.mapper.TagMapper;
import cn.aixuxi.notebank.service.TagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述
 *
 * @author ruozhuliufeng
 * @version 1.0
 * @date 2020/10/25 10:01
 */
@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, TagEntity> implements TagService {

    /**
     * 功能描述: 获取所有标签列表
     *
     * @return : java.util.List<cn.aixuxi.notebank.dto.TagOutputDTO>
     * @author : ruozhuliufeng
     * @date : 2020/10/25 10:51
     */
    @Override
    public List<TagOutputDTO> tagList() {
        return this.getBaseMapper().tagList();
    }
}
